<?xml version="1.0" encoding="UTF-8"?>
<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>

<ui:composition xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:a4j="http://richfaces.org/a4j"
xmlns:rich="http://richfaces.org/rich">
<f:view>
<h:head></h:head>
<h:body>
<rich:panel header="Richfaces sample validation and auto-completion">
<h:form>
<h:outputText value="Enter your name" />
<h:inputText id="name" value="#{userBean.usuario}">
<rich:validator />
</h:inputText>
<rich:message for="name" />
<br />
<h:outputText value="Enter your state" />
<rich:autocomplete value="#{userBean.state}" minChars="1" autocompleteMethod="#{userBean.usuario}" />
</h:form>
</rich:panel>
</h:body>
</f:view>
</ui:composition>
    
  